package cn.com.websocket.util;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/***
 ** @category 请用一句话描述这个类的用途
 ** @author qing.yunhui
 ** @email: qingyh@glodon.com
 ** @createTime: 2021-08-16 11:58
 **/
public class Test {

    public static void main(String[]args){
        test();
    }

    public static void test() {


        System.out.println(3d/4);


        Pattern pattern = Pattern.compile("data:([\\S]{1,});base64,");
        Matcher matcher = pattern.matcher("data:application/x-zip-compressed;base64,dfdsfddsfdfdsfs");

        String base64PNG ="";
        String base64Zip ="data:application/x-zip-compressed;base64,fasdfasfdasdfefsdafasddfasdfa";
        Matcher matcher2 = pattern.matcher(base64PNG);
        Matcher matcher3 = pattern.matcher(base64Zip);

        System.out.println(matcher.find());
        System.out.println(matcher.group());
        System.out.println(matcher2.find());
        System.out.println(matcher2.group());
        System.out.println(matcher3.find());
        System.out.println(matcher3.group());
    }

}
